{extend name="layout:base" /}

{block name="main"}
<div class="path">
    <div class="card <?php echo fm_get_theme(); ?>">
        <div class="card-header">
            <h6>{:lng('Copying')}</h6>
        </div>
        <div class="card-body">
            <form action="" method="post">
                <input type="hidden" name="p" value="{:fm_enc(FM_PATH)}">
                <input type="hidden" name="finish" value="1">
                <?php
                    foreach ($copy_files as $cf) {
                        echo '<input type="hidden" name="file[]" value="' . fm_enc($cf) . '">' . PHP_EOL;
                    }
                ?>
                <p class="break-word"><strong>{:lng('Files')}</strong>: <b>{:implode('</b>, <b>', $copy_files)}</b></p>
                <p class="break-word"><strong>{:lng('SourceFolder')}</strong>: {:fm_enc(fm_convert_win(FM_ROOT_PATH . '/' . FM_PATH))}<br>
                    <label for="inp_copy_to"><strong>{:lng('DestinationFolder')}</strong>:</label>
                    {:FM_ROOT_PATH}/<input type="text" name="copy_to" id="inp_copy_to" value="{:fm_enc(FM_PATH)}">
                </p>
                <p class="custom-checkbox custom-control">
                    <input type="checkbox" name="move" value="1" id="js-move-files" class="custom-control-input">
                    <label for="js-move-files" class="custom-control-label ms-2"> {:lng('Move')}</label>
                </p>
                <p>
                    <b><a href="{:addon_url('admin/index/index', ['p' => FM_PATH])}" class="btn btn-light"><i class="fa fa-reply-all"></i> {:lng('Cancel')}</a></b>&nbsp;
                    {:token_field()}
                    <button type="submit" class="btn btn-primary"><i class="fa fa-check-circle"></i> {:lng('Copy')}</button>
                </p>
            </form>
        </div>
    </div>
</div>
{/block}